<?php

return array(
	'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
	'name' => 'Yêu handmade',
	'defaultController' => 'site/index',
	'params'=> array(
		'appId' => '297726646982495',
		'secret' => 'e5b327f0ee6cbed6b4af9c9e35488e31',
		'oAuthScope' => 'email',
		'fanpageUrl'=>'http://www.facebook.com/handmadevn',
		'redirectUrl' => 'site/redirect'
	),
	'import' => array(
		'application.models.*',
		'application.components.*',
		'application.vendors.*'
	),
	'modules' => array(
		'gii' => array(
			'class' => 'system.gii.GiiModule',
			'password' => 'timraroi',
		),
	),
	'components' => array(
//		'db' => array(
//			'class' => 'system.db.CDbConnection',
//			'connectionString' => 'mysql:host=mysql-shared-02.phpfog.com;dbname=yeuhandmade_phpfogapp_com',
//			'emulatePrepare' => true,
//			'username' => 'hungnq1989-41031',
//			'password' => 'iY41r74G60nU',
//			'charset' => 'utf8',
//			'emulatePrepare' => true,
//		),
		'db' => array(
			'class' => 'system.db.CDbConnection',
			'connectionString' => 'mysql:host=localhost;dbname=handmadevn',
			'emulatePrepare' => true,
			'username' => 'root',
			'password' => '',
			'charset' => 'utf8',
			'emulatePrepare' => true,
		),
		'log' => array(
			'class' => 'CLogRouter',
			'routes' => array(
				array(
					'class' => 'CProfileLogRoute',
					'levels' => 'trace, info, error, warning',
				),
			),
		),
		'urlManager' => array(
			'urlFormat' => 'path',
			'rules' => array(
			),
		),
	),
);